package com.cksys.achievement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cksys.achievement.entity.Result;
import com.cksys.achievement.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author tadechen
 * @since 2019-09-26
 */
public interface ResultMapper extends BaseMapper<Result> {

    List<LinkedHashMap<String, String>> getCalendar();

    List<LinkedHashMap<String, String>> getByType();

    LinkedHashMap<String, String> getByNullType();

    List<LinkedHashMap<String, String>> getByUser();

    List<LinkedHashMap<String, String>> getByTypeWithYear();

    List<HashMap<Integer, String>> getTopUser(@Param("num") Integer num);

}
